package com.focusai.efairy.ui.adapter;

import android.content.Context;

import com.focusai.efairy.R;
import com.focusai.efairy.model.location.MapType;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerAdapter;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerViewHolder;

/**
 * Created by luo_guangwen on 2017/8/13.
 */

public class LocationMapTypeAdapter extends BaseRecyclerAdapter<MapType> {
    public LocationMapTypeAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.view_map_type_text;
    }

    @Override
    protected void onBindBaseRecyclerViewHolder(BaseRecyclerViewHolder holder, int position) {
        holder.setText(R.id.text_type, mList.get(position).getName());
    }

}
